package cn.edu.huanu.service;

import cn.edu.huanu.exception.BusinessException;
import cn.edu.huanu.pojo.User;
import cn.edu.huanu.utils.R;

/**
 * @author hb
 * @date 2025-11-06 10:54:29
 */
public interface UserService {
    /**
     * 登录的业务
     * @param username
     * @param pwd
     * @return
     * @throws BusinessException
     */
    User login(String username, String pwd) throws BusinessException;

    /**
     * 注册的业务
     * @param user
     * @throws BusinessException
     */
    R regiester(User user)throws BusinessException;

    R checkUserNameExist(String username) throws BusinessException;

}
